package com.example.validdemo.service;

import com.example.validdemo.model.SysUser;
import com.example.validdemo.validator.Validator;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

@Validated
public interface SysUserService {

    @Validated(Validator.Add.class)
    SysUser saveUser(@Valid SysUser sysUser, String s);
}
